<div class="merchant_new_wrapper">
	<div class="merchant_new_form_title">
		<div class="merchant_new_title_wrapper"><img src="/images/form_title.png"/> 编辑信息</div>
	</div>
	<div class="error_info"><span class="error_info_text"><%= flash[:notice]%></span></div>
	<% form_for :merchant, :url => {:action => 'update'} do |form|%>
	<div id="merchant_new_form_content">
		<table width="100%" border="0" cellpadding="0" cellspacing="1">
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">商&nbsp;户</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= @merchant.username %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">快印店名称</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= text_field 'store', 'name', :size => 20 %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">地&nbsp;址</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= text_field 'store', 'address', :size =>50 %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">所在省</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= select 'store', 'province', [["上海市", "上海市"]] %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">所在市</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= select 'store', 'city', [["上海市", "上海市"]] %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">所在区</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= select 'store', 'area', [["黄浦区", "黄浦区"], ["浦东", "浦东"]] %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">电&nbsp;话</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= text_field 'store', 'phone', :size => 20 %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">移动电话</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= text_field 'store', 'mobile_phone', :size => 20 %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">工作时间</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= text_field 'store', 'work_time', :size => 50 %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">电子邮件</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= text_field 'store', 'email', :size => 20 %></span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">简&nbsp;介</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element"><%= fckeditor_textarea('store', 'description', :toolbarSet => 'Simple', :width => '90%', :height => '300px') %>
					</span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">Logo</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element">
						<% if @store && @store.logo%>
							<img src = "<%= @store.logo%>"/><br/>
						<% end %>
						<%= file_field 'store', 'upload_store_image' %>
					</span>
				</td>
			</tr>
			<tr>
				<td class="form_td_left"><span class="form_td_left_name">Logo</span></td>
				<td class="form_td_right">
					<span class="form_td_right_element">
						<% if @store && @store.store_image%>
							<img src = "<%= @store.store_image%>"/><br/>
						<% end %>
						<%= file_field 'store', 'upload_logo' %>
					</span>
				</td>
			</tr>
		</table>
	</div>
	<div id="merchant_new_form_button_area">
		<div class="merchant_new_form_button_wrapper">
			<%= submit_tag("#{form_submit_tag}", :id => 'commit', :class => "merchant_new_form_button") %>
		</div>
	</div>
	<% end %>
</div>